#ifndef _CKENGINELOG_H_
#define _CKENGINELOG_H_



#include "CKLogFile.h"

namespace K_Engine
{
	enum LOG_TIME
	{
		YEAR = 0,
		MONTH = 1,
		DAY = 2
	};
	
	class CKEngineLog : public CKLogFile
	{
	protected:
		std::string m_strPath;
		std::string m_strLastName;
		int m_nType;
		
	protected:
		void SetPath(const std::string strPath);
		bool bPathIsExist(const std::string& strPath);
		
	public:
		
		CKEngineLog(const std::string strPath = "./log", LOG_TIME nType = MONTH);
		~CKEngineLog();
		const std::string& GetPath();
		virtual void Log(const std::string& strText, LOG_TYPE level);
		
	private:
		/**
		 * 屏蔽函数
		 */
		CKEngineLog(const CKEngineLog&);
		CKEngineLog& operator = (const CKEngineLog&);
	};
}

#endif // ! _CKENGINELOG_H_